import java.util.Scanner;
public class Homework {
    public static void main(String[] args) {
        int y = 0;
        System.out.println("请输入数字：");
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        if (x<0){
            y = -1;
        }
        else if(x>0){
            y = 1;
        }
        else{
            y = 0;
        }
        System.out.println("x="+x+",y="+y);
    }
}
